package com.yami.shop.service;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.Advertising;
import com.yami.shop.common.util.PageParam;

import java.util.List;

/**
 * @author wxf
 * @date 2023/6/13 15:47
 */
public interface AdvertisingService extends IService<Advertising> {

    /**
     *  查询广告列表
     *
     * @param page
     * @param param
     * @return
     */
    IPage<Advertising> getPage(PageParam<Advertising> page, Advertising param);

    /**
     *  删除广告
     *
     * @param ids
     */
    void deleteAdvertisingByIds(Long[] ids);

    /**
     *  返回启用广告
     *
     * @return
     */
    List<JSONObject> getAdvertising();
}
